<template>
  <div>
    <el-button @click="test">test</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    test() {
      this.$http
        .post({
          URL: "test",
          data: { name: "coderqian" },
          headers: {
            "Content-Type": "application/json; charset=utf-8",
          },
        })
        .then((res) => {
          console.log(res.data);
        });
    },
  },
};
</script>
<style scoped></style>
